package com.crm.vo;

import com.crm.entity.CrmRole;
import lombok.Data;

/**
 * @author junxian.dou
 * @Package：com.crm.vo
 * @Project：springboot-crm
 * @name：SysRole
 * @Date：2024/12/5 18:05
 * @Filename：SysRole
 * @verson 1.0.0
 * @desc
 */
@Data
public class SysRole {

    private Integer id;

    /*
     * 角色名称，英文名称
     */
    private String rolename;

    /**
     * 备注
     */
    private String remark;

    private String code;

    public CrmRole getRoleEntity(){
        CrmRole crmRole = new CrmRole();
        crmRole.setCode(this.code);
        crmRole.setRolename(this.getRolename());
        crmRole.setRemark(this.getRemark());
        return crmRole;
    }
}
